var e = require("../../common/vendor.js"), t = require("../../api/ajax.js");

require("../../api/service.js"), require("../../utils/luch-request/core/Request.js"), 
require("../../utils/luch-request/core/dispatchRequest.js"), require("../../utils/luch-request/adapters/index.js"), 
require("../../utils/luch-request/helpers/buildURL.js"), require("../../utils/luch-request/utils.js"), 
require("../../utils/luch-request/core/buildFullPath.js"), require("../../utils/luch-request/helpers/isAbsoluteURL.js"), 
require("../../utils/luch-request/helpers/combineURLs.js"), require("../../utils/luch-request/core/settle.js"), 
require("../../utils/luch-request/core/InterceptorManager.js"), require("../../utils/luch-request/core/mergeConfig.js"), 
require("../../utils/luch-request/core/defaults.js"), require("../../utils/luch-request/utils/clone.js"), 
require("../../uni_modules/u-store/js_sdk/Storage.js"), require("../../config/config.js");

var r = function() {
    for (var e = [], t = "A1".charCodeAt(0), r = 0; r < 26; r++) e.push(String.fromCharCode(t + r));
    return e;
}, n = {
    data: function() {
        return {
            loading: !1,
            showImage: !1,
            itemArr: [],
            keywords: "",
            indexList: r(),
            skeleton: [ {
                type: "flex",
                num: 15,
                gap: "0",
                style: "borderBottom: 1px #dadbde solid;",
                children: [ {
                    type: "avatar",
                    num: 1,
                    style: "height:35px;width:35px;margin:6px 12px"
                }, {
                    type: "line",
                    num: 1,
                    style: "width:150rpx;height:25px;margin:11px 0"
                } ]
            } ]
        };
    },
    onLoad: function() {
        this.getBrandInfo("");
    },
    methods: {
        change: function(e) {
            var t = this;
            setTimeout(function() {
                t.getBrandInfo(e);
            }, 500);
        },
        getBrandInfo: function(e) {
            var r = this;
            this.loading = !0, t.doGetUrl("car.Brand/index", {
                keywords: e
            }).then(function(e) {
                var t = e.data.data;
                r.itemArr = t, r.loading = !1, r.showImage = !0;
            });
        },
        goSeries: function(t) {
            e.index.navigateTo({
                url: "/pages/car/series?id=" + t.brand_id
            });
        }
    }
};

Array || (e.resolveComponent("uv-search") + e.resolveComponent("uv-skeletons") + e.resolveComponent("uv-index-anchor") + e.resolveComponent("uv-image") + e.resolveComponent("uv-line") + e.resolveComponent("uv-index-item") + e.resolveComponent("uv-index-list"))(), 
Math || (function() {
    return "../../uni_modules/uv-search/components/uv-search/uv-search.js";
} + function() {
    return "../../uni_modules/uv-skeletons/components/uv-skeletons/uv-skeletons.js";
} + function() {
    return "../../uni_modules/uv-index-list/components/uv-index-anchor/uv-index-anchor.js";
} + function() {
    return "../../uni_modules/uv-image/components/uv-image/uv-image.js";
} + function() {
    return "../../uni_modules/uv-line/components/uv-line/uv-line.js";
} + function() {
    return "../../uni_modules/uv-index-list/components/uv-index-item/uv-index-item.js";
} + function() {
    return "../../uni_modules/uv-index-list/components/uv-index-list/uv-index-list.js";
})();

var i = e._export_sfc(n, [ [ "render", function(t, r, n, i, u, s) {
    var o = this;
    return e.e({
        a: e.o(s.change),
        b: e.o(function(e) {
            return u.keywords = e;
        }),
        c: e.p({
            modelValue: u.keywords
        }),
        d: u.loading
    }, u.loading ? {
        e: e.p({
            loading: u.loading,
            skeleton: u.skeleton
        })
    } : {}, {
        f: e.f(u.itemArr, function(t, r, n) {
            return {
                a: "4df80feb-4-" + n + ",4df80feb-3-" + n,
                b: e.p({
                    text: u.indexList[r]
                }),
                c: e.f(t, function(t, i, u) {
                    return e.e(0 == r ? {
                        a: o.siteUrl + t.titlepic
                    } : {
                        b: "4df80feb-5-" + n + "-" + u + ",4df80feb-3-" + n,
                        c: e.p({
                            src: o.siteUrl + t.titlepic,
                            width: "35px",
                            height: "35px",
                            bgColor: "#f5f5f5"
                        })
                    }, {
                        d: e.t(t.title),
                        e: "4df80feb-6-" + n + "-" + u + ",4df80feb-3-" + n,
                        f: i,
                        g: e.o(function(e) {
                            return s.goSeries(t);
                        }, i)
                    });
                }),
                d: 0 == r,
                e: "4df80feb-3-" + n + ",4df80feb-1",
                f: r
            };
        }),
        g: e.p({
            src: "/static/image/bottom.png",
            width: "750rpx",
            mode: "widthFix"
        }),
        h: e.p({
            indexList: u.indexList,
            customNavHeight: "100rpx"
        })
    });
} ] ]);

wx.createPage(i);